package cn.mysdp.biz.controller;


import cn.mysdp.biz.dto.request.*;
import cn.mysdp.biz.dto.response.*;
import cn.mysdp.biz.facade.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: SdpTemplateWebBaseController
 * @Description:
 * @Author: SDP
 * @Date: 2021-10-30
 * @Version: 1.0
 * Table: sdp_template
 * Comment:
 * 
 */
public class SdpTemplateWebBaseController extends BaseController {
    @Autowired
    SdpTemplateFacade service;

    public Integer addSdpTemplate(SdpTemplateAddRequest request) throws Exception {
        return service.addSdpTemplate(request);
    }

    public Integer updateSdpTemplate(SdpTemplateUpdateRequest request) throws Exception {
        return service.updateSdpTemplate(request);
    }

    public Integer deleteSdpTemplate(SdpTemplateDeleteRequest request) throws Exception {
        return service.deleteSdpTemplate(request);
    }

    public SdpTemplateQueryResponse querySdpTemplate(SdpTemplateQueryRequest request) throws Exception {
        return service.querySdpTemplate(request);
    }

    public List<SdpTemplateQueryResponse> listSdpTemplate(SdpTemplateQueryRequest request) throws Exception {
        return service.listSdpTemplate(request);
    }

    public Integer countSdpTemplate(SdpTemplateQueryRequest request) throws Exception {
        return service.countSdpTemplate(request);
    }

    public BaseStatResponse statSdpTemplate(SdpTemplateQueryRequest request) throws Exception {
        return service.statSdpTemplate(request);
    }


}
